﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

using Model;
using ValuationBLL;
namespace ValuationServers.Controllers
{
    public class DepartmentController : ApiController
    {

        DepartmentBLL bll = new DepartmentBLL();

        #region 显示部门下拉框
        //显示部门下拉框
        public IEnumerable<SysDepartment> Get()
        {
            return bll.DepartmentList();
        }
        #endregion

        #region 根据部门编号显示对应的员工信息
        //根据部门编号显示对应的员工信息
        public IEnumerable<SysUser> Get(int id, int RolesId)
        {
            return bll.DepartmentUser(id, RolesId);
        }
        #endregion

       
    }
}
